home *** CD-ROM | disk | FTP | other *** search
/ Champak 139 / (Vol 139) Sep 24 2011.iso / Games / kirby.swf / scripts / frame_12 / PlaceObject2_167_9 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2011-09-24  |  613b  |  22 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.Levelchange._currentframe >= 50)
  3.    {
  4.       this._y = Math.floor(this._y - (this._y - 700) / 5);
  5.    }
  6.    if(this.SPAstar._currentframe == 1)
  7.    {
  8.       Goto = 11 + random(3);
  9.       duplicateMovieClip(this.S,"S" add Z,16384 + Z);
  10.       this["S" add forvar]._x = this.SPAstar._x;
  11.       this["S" add forvar]._y = this.SPAstar._y;
  12.       this["S" add forvar]._yscale = this.SPAstar._xscale;
  13.       this["S" add forvar]._xscale = this.SPAstar._yscale;
  14.       this["S" add forvar].goto = goto;
  15.       Z += 1;
  16.       if(10 < Z)
  17.       {
  18.          Z = 0;
  19.       }
  20.    }
  21. }
  22.